import React, { memo } from "react";

import "./index.scss";
import PropTypes from 'prop-types';

const WYThemeHeaderSong = memo(function (props) {
    const {leng,total} = props
  return (
    <div className="wy-theme-header-song">
      <div className="left">
        <h3 className="title">歌曲列表</h3>
        <div className="count">{leng}首歌</div>
      </div>
      <div className="right">
        <span>播放</span>
        <span className="count">{total}</span>
        <span>次</span>
      </div>
    </div>
  );
});
WYThemeHeaderSong.propTypes = {
    leng:PropTypes.number.isRequired,
    total:PropTypes.number.isRequired,
}

export default WYThemeHeaderSong;
